<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .wrapper{
            width: 600px;
            height: 400px;
            border: 1px solid #000;
            margin: 0 auto;
        }

        .box1, .box2, .box3{
            width: 150px;
            height: 150px;
            border: 1px dotted red;
            display: inline-block;
        }
        .box2{
            /*不会发生偏移*/
            /*position: static;*/
            
            /*position: relative;*/
            left: 100px;
            top: 100px;
        }
    </style>
</head>
<body>
    <div class="wrapper">
        <div class="box1"></div>
        <div class="box2"></div>
        <div class="box3"></div>
    </div>
</body>
</html>